package com.demo.auth.domain.wx;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author MyPC
 */
@Data
@ApiModel("微信小程序登录实体")
public class AppletLogin {

    @ApiModelProperty(value = "获取到的sessionKey",required = true)
    @NotBlank(message = "sessionKey不能为空")
    private String sessionKey;
    @ApiModelProperty(value = "获取到的encryptedData",required = true)
    @NotBlank(message = "encryptedData不能为空")
    private String encryptedData;
    @ApiModelProperty(value = "获取到的iv",required = true)
    @NotBlank(message = "iv不能为空")
    private String iv;
    @ApiModelProperty(value = "获取到的signature",required = true)
    @NotBlank(message = "signature不能为空")
    private String signature;
}
